package com.kma.summer2012.client.events.authorization;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;


public class LoginEvent extends GwtEvent<LoginEvent.LoginEventHandler> {

    private static Type<LoginEventHandler> TYPE = new Type<LoginEventHandler>();

    public LoginEvent() {

    }


    public interface LoginEventHandler extends EventHandler {
        void onLogin(LoginEvent event);
    }

    @Override
    public Type<LoginEventHandler> getAssociatedType() {
        return TYPE;
    }

    public static Type<LoginEventHandler> getType() {
        return TYPE;
    }

    @Override
    protected void dispatch(LoginEventHandler handler) {
        handler.onLogin(this);
    }
}

